home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11622 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: onramp.net!dean
  2. From: dean@onramp.net (Dean)
  3. Newsgroups: comp.lang.c++
  4. Subject: linking C & C++
  5. Date: 15 Mar 1996 13:51:38 GMT
  6. Organization: On-Ramp; Individual Internet Connections; Dallas/Ft Worth/Houston, TX USA
  7. Distribution: world
  8. Message-ID: <4ibsla$pll@news.onramp.net>
  9. Reply-To: dean@onramp.net
  10. NNTP-Posting-Host: dal43.onramp.net
  11.  
  12. I'm doing some work on a system that now requires me to do a longjmp from a C 
  13. program back into a C++ program.  The whole thing is linked into one big 
  14. executable.  I am having some trouble getting the thing linked, and I have 
  15. tried a number of different combinations.  What I have is a signal(), and 
  16. alarm(), and a longjmp() in the C file, and a setjmp() in the C++ file.  I have 
  17. tried defining the jmpbuffer in both files with it as an exter in the other, 
  18. but the linker always gives me a not-found condition for the jmpbuffer.  I know 
  19. that there is probably some little something that I'm not doing correctly, but 
  20. could use some ideas.  There are function calls in the C++ file to functions in 
  21. the C file, which then return, and everything there works just fine.  Any 
  22. suggestions?  Thanks.
  23.  
  24.  
  25.